package com.heima.article;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.pojo.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-article")
public interface ArticleApi {

    @PostMapping("/api/v1/article/add")
    ResponseResult add(@RequestBody WmNews wmNews, @RequestParam("authorName") String authorName, @RequestParam("channelName") String channelName);
}
